package com.notary.cms.web.manager.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.notary.cms.common.entity.Page;
import com.notary.cms.common.entity.Query;
import com.notary.cms.web.dao.GoodsOrderContactMapper;
import com.notary.cms.web.entity.GoodsOrderContact;
import com.notary.cms.web.entity.GoodsOrderContactExample;
import com.notary.cms.web.manager.GoodsOrderContactManager;

@Component("goodsOrderContactManager")
public class GoodsOrderContactManagerImpl implements GoodsOrderContactManager {

	@Autowired
	GoodsOrderContactMapper goodsOrderContactMapper;
	
	@Override
	public long countByExample(GoodsOrderContactExample example) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(GoodsOrderContactExample example) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.deleteByExample(example);
	}


	@Override
	public int insert(GoodsOrderContact record) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.insert(record);
	}

	@Override
	public List<GoodsOrderContact> selectByExample(
			GoodsOrderContactExample example) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.selectByExample(example);
	}

	@Override
	public GoodsOrderContact selectByPrimaryKey(Long recId) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.selectByPrimaryKey(recId);
	}

	@Override
	public int updateByPrimaryKeySelective(GoodsOrderContact record) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(GoodsOrderContact record) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<GoodsOrderContact> listGoodsOrderContactForPage(
			Page<GoodsOrderContact> page, Query query) {
		// TODO Auto-generated method stub
		return goodsOrderContactMapper.listGoodsOrderContactForPage(page, query);
	}

}
